import request from '@/utils/request'

export function getHelpByPage(query) {
  return request({
    url: '/mall/api/manager/info/help',
    method: 'get',
    params: query
  })
}

export function addHelp(data) {
  return request({
    url: '/mall/api/manager/info/help',
    method: 'post',
    data
  })
}

export function getHelpById(id) {
  return request({
    url: '/mall/api/manager/info/help/' + id,
    method: 'get'
  })
}

export function putHelpById(id, data) {
  return request({
    url: '/mall/api/manager/info/help/' + id,
    method: 'put',
    data
  })
}

export function deleteHelpById(id) {
  return request({
    url: '/mall/api/manager/info/help/' + id,
    method: 'delete'
  })
}
